<%--
/**
* Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>

<%@page import="com.liferay.portal.theme.ThemeDisplay"%>
<%@taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>

<%@ include file="/init.jsp"%>


<portlet:defineObjects />




<liferay-portlet:actionURL name="pickApplicationType" var="pickApplicationType"></liferay-portlet:actionURL>

 <% String app = (String)request.getAttribute("application"); %>
 
<div id="main">

	<%
		if("certification".equalsIgnoreCase(app)){
	%>
	<h1>Application for Certificate Of Occupancy</h1>
	<div class="content"> 
		<liferay-ui:error key="application-type-mandatory" message="application-type-mandatory" />
		<p>Please note that <span class="notforsale">Application Forms are not for SALE!</span></p>
		<p>You can cancel your application before we start the processing. From your Application
		Summary page, you will be able to track your application status and do other
		processes.</p>
		<p>Please select the which application to be made:</p>
	 	<aui:form action="<%=pickApplicationType.toString() %>" method="post" name="pickApplicationType_fm">
	
			<table border="0" cellpadding="5" cellspacing="0" width="75%">
			<tr>
				<td width="45%" align="right" > Application Type :</td>
	    	<td width="55%" align="left">
	    		
					<aui:input name="application" type="hidden" value="<%=app  %>"></aui:input>
					<aui:select label="" inlineField="true"  name="applicationType" id="form-element">
						<option value="" selected="selected" >Select An Application Type</option>
						<option value="Individual" >Individual Application</option>
						<option value="Organisation">Organization Application</option>
					</aui:select>
	   		</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
	    	<td>
	    		<br>
	    		<aui:button type="Submit" value="Next"></aui:button>
	   		</td>
			</tr>
			<tr>
				<td>
	
				</td>
			</tr>
			</table>
		</aui:form>
	</div>
	<%
	}else if ("re-certification".equalsIgnoreCase(app)){
	%>
	<h1>Application for Re-Certificate Of Occupancy</h1>
	<div class="content"> 
		<p>Please note that <span class="notforsale">Application Forms are not for SALE!</span></p>
		<p>You can cancel your application before we start the processing. From your Application
		Summary page, you will be able to track your application status and do other
		processes.</p>
		<p>You can apply for a re-certificate of occupancy based on the following conditions</p>
		<ul>
		<li>When there is a change in ownership based on sale of property, inheritance or otherwise.</li>
		<li>
		Change of old certificate of occupancy to the new certificate of occupancy
		</li>
		</ul>
		<p></p>
		
		<p>Please select the which application to be made:</p>
	 	<aui:form action="<%=pickApplicationType.toString() %>" method="post" name="pickApplicationType_fm">
	
			<table border="0" cellpadding="5" cellspacing="0" width="75%">
			<tr>
				<td width="45%" align="right" > Application Type :</td>
	    	<td width="55%" align="left">
	    		
					<aui:input name="application" type="hidden" value="<%=app  %>"></aui:input>
					<aui:select label="" inlineField="true"  name="applicationType" id="form-element">
						<option value="" selected="selected" >Select An Application Type</option>
						<option value="Individual" >Individual Application</option>
						<option value="Organisation">Organization Application</option>
					</aui:select>
	   		</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
	    	<td>
	    		<br>
	    		<aui:button type="Submit" value="Next"></aui:button>
	   		</td>
			</tr>
			<tr>
				<td>
	
				</td>
			</tr>
			</table>
		</aui:form>
	</div>
	<%
	}else if ("stateland".equalsIgnoreCase(app)) {
	%>
	<h1>Application for State Land</h1>
	<div class="content"> 
		<p>Please note that <span class="notforsale">Application Forms are not for SALE!</span></p>
		<p>You can cancel your application before we start the processing. From your Application
		Summary page, you will be able to track your application status and do other
		processes.</p>
		
		<p></p>
		
		<p>Please select the which application to be made:</p>
	 	<aui:form action="<%=pickApplicationType.toString() %>" method="post" name="pickApplicationType_fm">
	
			<table border="0" cellpadding="5" cellspacing="0" width="75%">
			<tr>
				<td width="45%" align="right" > Application Type :</td>
	    	<td width="55%" align="left">
	    		
					<aui:input name="application" type="hidden" value="<%=app  %>"></aui:input>
					<aui:select label="" inlineField="true"  name="applicationType" id="form-element">
						<option value="" selected="selected" >Select An Application Type</option>
						<option value="Individual" >Individual Application</option>
						<option value="Organisation">Organization Application</option>
					</aui:select>
	   		</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
	    	<td>
	    		<br>
	    		<aui:button type="Submit" value="Next"></aui:button>
	   		</td>
			</tr>
			<tr>
				<td>
	
				</td>
			</tr>
			</table>
		</aui:form>
	</div>
	<%
	}else  {
	%>
	<h1>No transaction Selected</h1>
	<div class="content"> 
		
	</div>
	<%
	}
	%>
	
</div>	




